
package com.fire.web.modules.all.service.impl;

import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.fire.web.modules.all.entity.DeviceCategorySpecModel;
import com.fire.web.modules.all.mapper.DeviceCategorySpecMapper;
import com.fire.web.modules.all.service.IDeviceCategorySpecService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 设备规格分类对照Service
 *
 * @author Matthew
 * @Date 2019-01-17 20:48
 */
@Service
public class DeviceCategorySpecServiceImpl extends ServiceImpl<DeviceCategorySpecMapper, DeviceCategorySpecModel> implements IDeviceCategorySpecService {

    private static final Logger LOGGER = LoggerFactory.getLogger(DeviceCategorySpecServiceImpl.class);

    @Autowired
    private DeviceCategorySpecMapper deviceCategorySpecMapper;

    @Override
    public DeviceCategorySpecModel selectOne(DeviceCategorySpecModel entity){
        return deviceCategorySpecMapper.selectOne(entity);
    }

    @Override
    public List<DeviceCategorySpecModel>selectList(DeviceCategorySpecModel model){
        return deviceCategorySpecMapper.selectListByModel(model);
    }

    @Override
    public Page<DeviceCategorySpecModel> selectPage(int currentPage, int pageSize, Wrapper<DeviceCategorySpecModel> wrapper){
        return selectPage(new Page<DeviceCategorySpecModel>(currentPage,pageSize), wrapper);
    }

    @Override
    public Page<Map<String, Object>> selectMapsPage(int currentPage, int pageSize, Wrapper<DeviceCategorySpecModel> wrapper){
        return selectMapsPage(new Page<DeviceCategorySpecModel>(currentPage,pageSize), wrapper);
    }

}
